package com.xyzm.mytest.function;

import java.util.function.Predicate;

public class PredicateDemo implements Predicate<String> {

    @Override
    public boolean test(String s) {
        if (s.equals("Hello")) return true;
        return false;
    }
}
